﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="emailsupper.aspx.cs" Inherits="eDoc.emailsupper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-outer">
    <!-- start content -->
    <div id="content">
        <!--  start page-heading -->
        <div id="page-heading">
            <h1>
                Danh sách Email Supper
            </h1>
        </div>
        <!-- end page-heading -->
        <!-- start table content -->
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized">
                    <img src="/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
                </th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;
                </td>
                <th class="topright"></th>
                <th rowspan="3" class="sized">
                    <img src="/images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
                </th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <!--  start content-table-inner ...................................................................... START -->
                    <div id="content-table-inner">
                        <!--  start table-content  -->
                        <div id="table-content">
                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                <tr>
                                    <th valign="top">Email Supper</th>
                                    <td>
                                        <asp:TextBox ID="txtEmail" runat="server" CssClass="inp-form"></asp:TextBox>
                                        <input type="hidden"  id="hdID" runat="server" value="0"/>
                                    </td>
                                    <td></td>
                                </tr>
                                
                                <tr>
                                    <th valign="top"></th>
                                    <td>
                                        <asp:Label ID="lblNote" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <th valign="top"></th>
                                    <td>
                                        <asp:Button ID="btAdd" runat="server" Text="Thêm mới"
                                            CssClass="button_green" OnClick="btAdd_Click" />
                                        <asp:Button ID="btDel" runat="server" Text="Xóa" CssClass="button_gray" OnClick="btDel_Click" />
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                            <table border="0" width="50%" cellpadding="0" cellspacing="0" id="product-table">
                                <tr>
                                    <th class="table-header-repeat line-left">
                                        <a>Email</a>
                                    </th>
                                    <th class="table-header-repeat line-left">
                                        <a>IsCompany</a>
                                    </th>
                                </tr>
                                <asp:Repeater ID="repEmailUser" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <a href="/emailsupper.aspx?email=<%# Eval("Email")%>"><%# Eval("Email")%></a>
                                            </td>
                                            <td class="text-center">
                                                <%# Eval("IsCompany")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                        <tr class="alternate-row">
                                            <td>
                                                <a href="/emailsupper.aspx?email=<%# Eval("Email")%>"><%# Eval("Email")%></a>
                                            </td>
                                            <td class="text-center">
                                                <%# Eval("IsCompany")%>
                                            </td>
                                        </tr>
                                    </AlternatingItemTemplate>
                                </asp:Repeater>
                            </table>
                        </div>
                        <!--  end content-table  -->
                        <div class="clear">
                        </div>
                    </div>
                    <!--  end content-table-inner ............................................END  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;
                </td>
                <th class="sized bottomright"></th>
            </tr>
        </table>
        <!-- start table content -->
        <div class="clear">
            &nbsp;
        </div>
    </div>
    <!--  end content -->
    <div class="clear">
        &nbsp;
    </div>
</div>
</asp:Content>
